@echo off
cd /d "d:\vscode文件夹\zhixiban"

echo Starting Zhixiban Project...

echo Starting backend service...
cd backend
start "Backend" cmd /k python app.py

timeout /t 5 /nobreak >nul

echo Starting frontend service...
cd ../frontend
start "Frontend" cmd /k python -m http.server 8001

timeout /t 3 /nobreak >nul

echo Opening browser...
start http://localhost:8001/login.html

echo.
echo Project started successfully!
echo Backend: http://localhost:5000
echo Frontend: http://localhost:8001
echo Login: http://localhost:8001/login.html
echo.
echo Keep this window open to maintain services.
echo Close this window to stop all services.
pause